#pragma once
#include "Raw3DViewer.h"

// CMprView view
class CPolygonLeafDoc;

class CMprView : public CView
{
	DECLARE_DYNCREATE(CMprView)

protected:
	CMprView();           // protected constructor used by dynamic creation
	virtual ~CMprView();

public:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif
public:
	//bool m_bOrgView;
private:
	HWND  hWnd;
	HDC   m_hDC;
	HGLRC m_hRC;

	bool m_isFirstDraw;

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnSize(UINT nType, int cx, int cy);
protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();

public:
	virtual void OnInitialUpdate();
public:
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
public:
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
public:
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
public:
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
};


